package com.talis.platform.client;

import org.apache.commons.httpclient.Credentials;
import org.apache.log4j.Logger;

public class Store {

    private static final Logger log = Logger.getLogger(Store.class);

    private String myUri;
    private Credentials myCredentials;

    public Store(String uri) {
        myUri = uri;
    }

    public Store(String uri, Credentials credentials) {
        myUri = uri;
        myCredentials = credentials;
    }

    public String getUri() {
        return myUri;
    }

    public Credentials getCredentials() {
        return myCredentials;
    }

    public Metabox getMetabox() {
        return new Metabox(myUri + "/meta", myCredentials);
    }
    
    public SparqlService getSparqlService() {
        return new SparqlService(myUri + "/services/sparql", myCredentials);
    }
}
